package com.cos.shop.dao;

import com.cos.shop.entity.Orders;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2022/2/25 10:24
 * @description:
 */
public interface OrderDao {

    int addOrder(Orders orders) throws SQLException;

    List<Orders> getOrderListByUid(int uid) throws SQLException, InvocationTargetException, IllegalAccessException;

    Orders getOrderWithAdressByOid(String oid) throws SQLException, InvocationTargetException, IllegalAccessException;

    int chageOrderStateByOid(String oid, int isPay) throws SQLException;
}
